<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>icon-Sprites</title>
  <style>
    /* 1rem = 16px; */
    html{font-size:16px;}
    /* PS
    1.px
    2.rem
    */
    body{
      background-color: #000;
    }
    .icon{
      width:32px;
      height:31px;
      background: url(index_z_0348131.png) no-repeat;
      /* x轴  y轴  -  负值 */
      background-position: -190px -199px;
    }
    .icon1{
      width:2rem;
      height:1.9rem;
      background: url(index_z_0348131.png) no-repeat;
      background-position: -190px -199px;
    }

    .icon2{
      width:16px;
      height:16px;
      background: url(index_z_0348131.png) no-repeat;
      background-size: 220px 199px; /*如果图片缩小一半,那么background-position也要对应的缩小一半*/
      background-position: -95px -100px;
    }
  </style>
</head>

<body>
<div class="icon"></div>
<div class="icon1"></div>
<div class="icon2"></div>

</body>

</html>
